package com.lnking.lnkingplace.mapper;

import com.lnking.lnkingplace.model.entity.ReadUser;
import com.lnking.starter.mybatis.mapper.CustomBaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhangqt
 * @since 2022-08-24
 */
public interface ReadUserMapper extends CustomBaseMapper<ReadUser> {

    @Select(" select id from read_user where user_id = #{userId} and notice_id = #{noticeId} ")
    String getId(@Param("userId") String userId,@Param("noticeId") String noticeId);
}
